function skyblock:tool_rng

execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 1 run summon skeleton ~1 ~ ~ {PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_shadow_tier1",Attributes:[{Name:generic.max_health,Base:3.0},{Name:generic.knockback_resistance,Base:1.0}],Health:1.0f,CustomName:"\"骸骨幻影\"",CanPickUpLoot:0,HandItems:[{Count:1,id:bow}],HandDropChances:[0.00f],ArmorItems:[{},{},{},{}]}
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 1 run particle minecraft:reverse_portal ~1 ~1 ~ 0.5 0.6 0.5 0.5 40
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 2 run summon skeleton ~-1 ~ ~ {PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_shadow_tier1",Attributes:[{Name:generic.max_health,Base:3.0},{Name:generic.knockback_resistance,Base:1.0}],Health:1.0f,CustomName:"\"骸骨幻影\"",CanPickUpLoot:0,HandItems:[{Count:1,id:bow}],HandDropChances:[0.00f],ArmorItems:[{},{},{},{}]}
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 2 run particle minecraft:reverse_portal ~-1 ~1 ~ 0.5 0.6 0.5 0.5 40
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 3 run summon skeleton ~ ~ ~1 {PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_shadow_tier1",Attributes:[{Name:generic.max_health,Base:3.0},{Name:generic.knockback_resistance,Base:1.0}],Health:1.0f,CustomName:"\"骸骨幻影\"",CanPickUpLoot:0,HandItems:[{Count:1,id:bow}],HandDropChances:[0.00f],ArmorItems:[{},{},{},{}]}
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 3 run particle minecraft:reverse_portal ~ ~1 ~1 0.5 0.6 0.5 0.5 40
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 4 run summon skeleton ~ ~ ~-1 {PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_shadow_tier1",Attributes:[{Name:generic.max_health,Base:3.0},{Name:generic.knockback_resistance,Base:1.0}],Health:1.0f,CustomName:"\"骸骨幻影\"",CanPickUpLoot:0,HandItems:[{Count:1,id:bow}],HandDropChances:[0.00f],ArmorItems:[{},{},{},{}]}
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 4 run particle minecraft:reverse_portal ~ ~1 ~-1 0.5 0.6 0.5 0.5 40

execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1,scores={SeGa_NumPartic=3..}] rng4 matches 2 run summon skeleton ~1 ~ ~ {PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_shadow_tier1",Attributes:[{Name:generic.max_health,Base:3.0},{Name:generic.knockback_resistance,Base:1.0}],Health:1.0f,CustomName:"\"骸骨幻影\"",CanPickUpLoot:0,HandItems:[{Count:1,id:bow}],HandDropChances:[0.00f],ArmorItems:[{},{},{},{}]}
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 2 run particle minecraft:reverse_portal ~1 ~1 ~ 0.5 0.6 0.5 0.5 40
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1,scores={SeGa_NumPartic=3..}] rng4 matches 1 run summon skeleton ~-1 ~ ~ {PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_shadow_tier1",Attributes:[{Name:generic.max_health,Base:3.0},{Name:generic.knockback_resistance,Base:1.0}],Health:1.0f,CustomName:"\"骸骨幻影\"",CanPickUpLoot:0,HandItems:[{Count:1,id:bow}],HandDropChances:[0.00f],ArmorItems:[{},{},{},{}]}
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 1 run particle minecraft:reverse_portal ~-1 ~1 ~ 0.5 0.6 0.5 0.5 40
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1,scores={SeGa_NumPartic=3..}] rng4 matches 4 run summon skeleton ~ ~ ~1 {PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_shadow_tier1",Attributes:[{Name:generic.max_health,Base:3.0},{Name:generic.knockback_resistance,Base:1.0}],Health:1.0f,CustomName:"\"骸骨幻影\"",CanPickUpLoot:0,HandItems:[{Count:1,id:bow}],HandDropChances:[0.00f],ArmorItems:[{},{},{},{}]}
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 4 run particle minecraft:reverse_portal ~ ~1 ~1 0.5 0.6 0.5 0.5 40
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1,scores={SeGa_NumPartic=3..}] rng4 matches 3 run summon skeleton ~ ~ ~-1 {PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_shadow_tier1",Attributes:[{Name:generic.max_health,Base:3.0},{Name:generic.knockback_resistance,Base:1.0}],Health:1.0f,CustomName:"\"骸骨幻影\"",CanPickUpLoot:0,HandItems:[{Count:1,id:bow}],HandDropChances:[0.00f],ArmorItems:[{},{},{},{}]}
execute as @e[tag=AzrielBossA,limit=1] at @s run execute at @s if score @e[tag=sc,limit=1] rng4 matches 3 run particle minecraft:reverse_portal ~ ~1 ~-1 0.5 0.6 0.5 0.5 40


execute as @e[tag=AzrielBossA,limit=1] at @s run playsound minecraft:entity.illusioner.cast_spell hostile @a[tag=SeGa_StandLastA] ~ ~ ~ 100 0.7